<%@ page import="java.util.HashMap,common.CommonUtil,java.util.*,common.*" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/WEB-INF/commontags.tld" prefix="common" %><%--페이징처리tag--%>
<%
UserSession userSession = (UserSession)session.getAttribute("user"); 

String login_id = null;
String user_id = null;
String level = null;
String admin_ent_id = null;

if(userSession!= null){
	login_id = userSession.getLogin_id();
	user_id = userSession.getUser_id();
	level = userSession.getAdmin_level();
	admin_ent_id = userSession.getEnt_id();
}

String member_id	= CommonUtil.nvl(request.getParameter("member_id"),""); 
String gubun	= CommonUtil.nvl(request.getParameter("gubun"),""); 

if(gubun.equals("")){
	gubun = "TS";
}

HashMap listMap=(HashMap)request.getAttribute("list_map");

HashMap map  = null;
ArrayList list=null;


String reg_dt 	= "";
String reg_cnt 		= "";
String per_cnt	= "";

String total_cnt	= "0";
String ready_cnt	= "0";
String process_cnt	= "0";
String end_cnt	= "0";
String retest_cnt	= "0";
String holding_cnt	= "0"; 
String test_pause_cnt	= "0"; 
String test_break_cnt	= "0"; 

if (listMap!=null){
    list=(ArrayList)listMap.get("mainContent");
    
}

if(list != null){
	if(list.size() > 0){
		total_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("total_cnt"),"0");
		ready_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("ready_cnt"),"0");
		process_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("process_cnt"),"0");
		end_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("end_cnt"),"0");
		retest_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("retest_cnt"),"0");
		holding_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("holding_cnt"),"");
		
		test_pause_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("test_pause_cnt"),"");
		test_break_cnt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("test_break_cnt"),"");
	}
}


%>
<jsp:include page="/jsp/common/header.jsp"></jsp:include>

<style>
body{background-color:#fff;background:#ffffff}
</style>


<form name="mainform"  method="post" action = "/speaking.pb" >
	<div id="bodyContainer">
        <div id="contents">
          
          <div class="statistics_opic">
            <dl title="전체 응시 통계">
              <dt>전체 응시 통계</dt>
            </dl>
            <table class="graphTb">
              <tr>
                <th>전체 응시</th>
                <th>진행전</th>
                <th>진행중</th>
                <th>시험완료</th>
                <th>재응시</th>
                <th>일시정지</th>
                <th>시험중단</th>
                <th>보류</th>
              </tr>
              <tr>
                <td class="frq"><%=total_cnt %></td>
                <td class="frq"><%=ready_cnt %></td>
                <td class="frq"><%=process_cnt %></td>
                <td class="frq"><%=end_cnt %></td>
                <td class="frq"><%=retest_cnt %></td>
                <td class="frq"><%=test_pause_cnt %></td>
                <td class="frq"><%=test_break_cnt %></td>
                <td class="frq"><%=holding_cnt %></td>
              </tr>
            </table>
          </div>
           
        </div>
      </div>


<input type="hidden" name="cmd" value="">
<input type="hidden" name="user_id" value="<%=user_id %>">
<input type="hidden" name="member_test_code" value="">
</form>

<iframe name='hidden_frm'  width='0' height='0' SCROLLING='AUTO' frameborder='0'></iframe>

<jsp:include page="/jsp/common/bottom.jsp"></jsp:include>
